#!/usr/bin/env python3

import sys
import pyshowip

def main():
    if len(sys.argv) <= 1:
        print("Usage: "+sys.argv[0]+" ip1 [ip2 [ip3 [...]]]")
        exit(1)

    ipFile = pyshowip.ShowIP()
    ipFile.open("QQWry.Dat")
    for ip in sys.argv[1:]:
        print(ipFile.showIP(ip))

if __name__ == "__main__":
    main()
